package com.asman.vr;

import com.asman.vr.answer.AnswerViewFactory;

import io.flutter.plugin.common.PluginRegistry.Registrar;

public class VrPlugin {
    public static void registerWith(Registrar registrar) {
        // vr 页面
        registrar.platformViewRegistry().registerViewFactory(
                "plugins.com.asman/vr",
                new VrWebViewFactory(registrar.messenger(), registrar.activity())
        );

        // 接单页面
        registrar.platformViewRegistry().registerViewFactory(
                "plugins.com.asman/answer",
                new AnswerViewFactory(registrar.messenger(), registrar.activity())
        );
    }
}
